home *** CD-ROM | disk | FTP | other *** search
Java Source | 1997-04-20 | 604 b | 34 lines |
- public class Circle {
- private Point position;
- private int radius;
- private canDelete;
- private canMove;
-
- public Point getPosition() {
- return position;
- }
-
- public void setPosition(Point p) {
- position = p;
- }
-
- public int getRadius() {
- return radius;
- }
-
- public void setRadius(int r) throws IllegalGeometryException {
- if (r < 0)
- throw new IllegalGeometryException();
- radius = r;
- }
-
- public boolean getMove() {
- return canMove;
- }
-
- public boolean getDelete() {
- return canDelete;
- }
-
- }
-